alfred: install configs with INSTALL_CONF (0600) 1138/head
authorJosef Schlehofer <[email protected]>
Mon, 16 Jun 2025 20:40:05 +0000 (22:40 +0200)
committerSven Eckelmann <[email protected]>
Fri, 5 Sep 2025 17:20:22 +0000 (19:20 +0200)
Use INSTALL_CONF instead of INSTALL_DATA to install configuration
 files under /etc with correct permissions.

This improves security by ensuring config files are not world-readable.
INSTALL_DATA sets mode 0644, while INSTALL_CONF sets mode 0600.

Signed-off-by: Josef Schlehofer <[email protected]>
Signed-off-by: Sven Eckelmann <[email protected]>
alfred/Makefile

index 9c8ae6d31d1ab69793b64ea83c9791d380b2fcc3..8a842ca0da6ceff86536cb759fb341fd7f0ce83b 100644 (file)
@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=alfred
 PKG_VERSION:=2025.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
@@ -76,7 +76,7 @@ define Package/alfred/install
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/alfred.init $(1)/etc/init.d/alfred
        $(INSTALL_DIR) $(1)/etc/config
-       $(INSTALL_DATA) ./files/alfred.config $(1)/etc/config/alfred
+       $(INSTALL_CONF) ./files/alfred.config $(1)/etc/config/alfred
        $(INSTALL_DIR) $(1)/etc/alfred
        [ "x$(CONFIG_PACKAGE_ALFRED_BATHOSTS)" == "xy" ] && $(INSTALL_BIN) ./files/bat-hosts.lua $(1)/etc/alfred/bat-hosts.lua ; true
 endef